package cn.gglol.code.generator;

/**
 * 配置字段
 *
 * @author <a href='Jvvtao:jwtao520@qq.com'>Jvvtao<a/>
 * @since
 */
public class Config {

    /**
     * mysql数据源 ip地址
     */
    private static String ip;

    /**
     * mysql数据源 端口号
     */
    private static int port;

    /**
     * mysql数据源 数据库名称
     */
    private static String dbName;

    /**
     * mysql数据源 用户名称
     */
    private static String username;

    /**
     * mysql数据源 用户密码
     */
    private static String password;

    /**
     * 作者
     */
    private static String author;

    /**
     * 生成包路径
     */
    private static String packageName;

    /**
     * 自动去除表前缀，默认是true
     */
    private static boolean autoRemovePre;

    /**
     * 表前缀(类名不会包含表前缀)
     */
    private static String tablePrefix;

    /**
     * 必须存在的表字段
     */
    private static String mustFields = "id,is_deleted,create_time,update_time";

    /**
     * 可以没有注释的字段
     */
    private static String ignoreCommentFields = "id,is_deleted,create_time,update_time";

    private static boolean outZip = false;

    private static boolean usePlus = false;

    public static String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        Config.author = author;
    }

    public static String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        Config.packageName = packageName;
    }

    public static boolean getAutoRemovePre() {
        return autoRemovePre;
    }

    public void setAutoRemovePre(boolean autoRemovePre) {
        Config.autoRemovePre = autoRemovePre;
    }

    public static String getTablePrefix() {
        return tablePrefix;
    }

    public void setTablePrefix(String tablePrefix) {
        Config.tablePrefix = tablePrefix;
    }

    public static String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        Config.ip = ip;
    }

    public static int getPort() {
        return port;
    }

    public void setPort(int port) {
        Config.port = port;
    }

    public static String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        Config.dbName = dbName;
    }

    public static String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        Config.username = username;
    }

    public static String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        Config.password = password;
    }

    public static String getMustFields() {
        return mustFields;
    }

    public void setMustFields(String mustFields) {
        Config.mustFields = mustFields;
    }

    public static String getIgnoreCommentFields() {
        return ignoreCommentFields;
    }

    public void setIgnoreCommentFields(String ignoreCommentFields) {
        Config.ignoreCommentFields = ignoreCommentFields;
    }

    public static boolean isOutZip() {
        return outZip;
    }

    public static void setOutZip(boolean outZip) {
        Config.outZip = outZip;
    }

    public static boolean isUsePlus() {
        return usePlus;
    }

    public void setUsePlus(boolean usePlus) {
        Config.usePlus = usePlus;
    }
}
